package Test06;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

//IO流
//文件拷贝
public class Test10 {
    public static void main(String[] args) throws IOException {

        FileInputStream fis = new FileInputStream("D:\\工作\\汉.txt");
        FileOutputStream fos = new FileOutputStream("D:\\工作\\汉copy.txt");
        int b;
        while ((b = fis.read()) != -1) {
            System.out.print((char) b);
            fos.write(b);
        }

        fis.close();
    }
}
